﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VCC.Cms.ViewModels.ContactUsEditModel>" %>
<%@ Import Namespace="VCC.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Chi tiết liên hệ
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
    Chi tiết liên hệ
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Toolbar" runat="server">
    <td>
        <%= Html.Toolbar("Quay về", "/ContactUs", "back") %>
        <%= Html.Toolbar("Xóa", string.Format("/ContactUs/Delete/{0}", Model.ContactUs.ID.ToString()), "delete")%>
    </td>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%if (ViewData["MessageInfo"] == null)
      { %>
    <%= Html.ValidationSummary(true)%>
    <table class="adminlist" width="700px" align="center">
        <tbody>
            <tr>
                <td class="key">Tiêu đề</td>
                <td><%=Html.Encode(Model.ContactUs.Title)%></td>
            </tr>
            <tr>
                <td class="key">Người gửi</td>
                <td><%=Html.Encode(Model.ContactUs.Name)%></td>
            </tr>
            <tr>
                <td class="key">Ngày gửi</td>
                <td><%=string.Format("{0:dd/MM/yyyy HH:mm}", Model.ContactUs.CreatedDate)%></td>
            </tr>
            <tr>
                <td class="key">
                    Số điện thoại
                </td>
                <td>
                    <%= Html.Encode(Model.ContactUs.PhoneNumber)%>
                </td>
            </tr>
            <tr>
                <td class="key">Email</td>
                <td><%=Html.Encode(Model.ContactUs.Email) %></td>
            </tr>
            <tr>
                <td class="key">Địa chỉ</td>
                <td><%=Html.Encode(Model.ContactUs.Address) %></td>
            </tr>
            <tr>
                <td class="key">Nội dung</td>
                <td><%=Html.Encode(Model.ContactUs.Content)%></td>
            </tr>
        </tbody>
    </table>
    <%
  } %>
</asp:Content>
